<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
	#div{
		background-color: red;
		width: 200px;
		height: 200px;
		margin: 0 auto;
		font: 50px/50px "simhei";
		display: none;
	}
	</style>
</head>
<body>
	<div id="div">欢迎访问</div>
</body>
<script type="text/javascript">
if (window.localStorage){
	var Local = window.localStorage;
	var div = document.getElementById('div');
	
	if (Local.getItem("firstCome")){
		div.style.display="none";
	}else{
		div.style.display="block";
	}
	Local.setItem("firstCome","true");
	// Local.removeItem("firstCome");
}else{
	alert("不支持本地存储")
}


</script>
</html>